package io;

public class Token {
	public Token(TokenType type, String code) {
		this.type = type;
		this.code = code;
	}
	public TokenType type;
	public String code;
	public String toString() {
		return type.toString() + " : " + 
		       ((type != TokenType.WHITE_SPACE && type != TokenType.END_OF_LINE) ? code : "");
	}
}
